import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: resolve => require(['../index.vue'], resolve),
      children: [
        {
          path: '/appIndex',
          name: 'appIndex',
          component: resolve => require(['../components/app/AppIndex.vue'], resolve)
        },
        {
          path: '/pcIndex',
          name: 'pcIndex',
          component: resolve => require(['../components/pc/PCIndex.vue'], resolve)
        }
      ]
    }
  ]
})
